from loguru import logger
from settings import LOG_LEVEL, LOG_FILE_PATH, LOG_ROTATION
import sys


logger.remove()  # 去除默认的终端logger输出
logger.add(LOG_FILE_PATH, level=LOG_LEVEL, rotation=LOG_ROTATION, encoding="utf-8")
logger.add(sys.stdout, level=LOG_LEVEL)
